<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<fmt:setBundle basename="infomessages" var="info"/>
<%
	request.setAttribute("path", request.getContextPath());
%>
<div class="control-group">
    <label class="control-label">用户ID:</label>
    <div class="controls">
		<c:choose>
			<c:when test="${user == null }">
				<input type="hidden"  id="modifyFlag" value="false" />
				<input type="text" id="id"  name="id" class="input-xlarge" maxlength="30"/>
			</c:when>
			<c:otherwise>
				<input type="hidden"  id="modifyFlag" value="true" />
				<input type="hidden" id="id"  name="id" value="${user.id }" />
				<span class="input-xlarge uneditable-input"><c:out value="${user.id }"/></span>
			</c:otherwise>
		</c:choose>
    </div>
</div>
<div class="control-group">
    <label class="control-label">姓名:</label>
    <div class="controls text-left">
    	<input type="hidden" />
    	<input type="text" id="name" name="name" class="input-xlarge" value="${user.name }" maxlength="25" />
    	
    </div>
</div>
<div class="control-group">
    <label class="control-label">手机:</label>
    <div class="controls">
    <input type="hidden" />
    <input type="text" id="mobile" name="mobile" class="input-xlarge" value="${user.mobile }" maxlength="11"/> 
    </div>
</div>
<%-- <p>
	<label>性别</label> 
	<c:forEach items="${gender}" var="item">
		<c:choose>
			<c:when test="${item.key == user.gender }">
				<input type="radio" name="gender" id="${item.key}" checked="checked" value="${item.key }"/>
			</c:when>
			<c:otherwise>
				<input type="radio" name="gender" id="${item.key}" value="${item.key }"/>
			</c:otherwise>
		</c:choose>
		<c:out value="${item.value.name }"/>
	</c:forEach>
</p>		
<p>
	<label>家庭电话</label> 
	<input type="text" id="phone" name="phone" class="input-xlarge" value="${user.telphone }"  maxlength="15" />
</p>

<p>
	<label>住址</label> 
	<input type="text" id="address" name="address" class="input-xlarge" value='<c:out value="${user.address }"/>' maxlength="250" />
</p>
<p>
	<label>邮箱</label> 
	<input type="text" id="email" name="email" class="input-xlarge" value="${user.email }" maxlength="50" />
</p>
<p>
	<label>出生年月</label> 
	<input type="text" id="birthday" name="birthday" class="input-xlarge" value='<fmt:formatDate value="${user.birthday}" pattern="yyyy-MM-dd"/>' readonly="readonly"/>
</p>

<p>
	<label>年龄</label> 
	<input type="text" id="age" name="age" class="input-xlarge" value="${user.age }" maxlength="3" />
</p> --%>
